<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>找出数组内最⼤的素数</title>
</head>
<body>
    <script>
        var a =[2,3,7,11,13,19,97]
			var he =0;
			for(var q =0; q<a.length;q++){
				if(he<a[q]){
					he =a[q]
					
				}
				
			} alert(he)


    </script>
</body>
</html>